import request from '@/utils/request'

// 查询门店信息列表
export function listShop(query) {
  return request({
    url: '/ruoyi/shop/list',
    method: 'get',
    params: query
  })
}

// 查询门店信息详细
export function getShop(shopId) {
  return request({
    url: '/ruoyi/shop/' + shopId,
    method: 'get'
  })
}


// 新增门店信息
export function addShop(data) {
  return request({
    url: '/ruoyi/shop',
    method: 'post',
    data: data
  })
}

// 修改门店信息
export function updateShop(data) {
  return request({
    url: '/ruoyi/shop',
    method: 'put',
    data: data
  })
}

// 删除门店信息
export function delShop(shopId) {
  return request({
    url: '/ruoyi/shop/' + shopId,
    method: 'delete'
  })
}
